uniform float minimumGradient;
uniform float maximumGradient;

float strengthVolume( const vec4 attributes, const vec3 grad ) {
   float gradMagnitude = length( grad );
   float value = smoothstep( minimumGradient, maximumGradient, gradMagnitude );
   return value;
}